Serial Port Configuration Button


ChantalPlusPlus

Recommended Posts

Hi All

 

This might be a silly question but I am very new to DaqFactory.

 

I'm working from different PC's on the same project, and I'm looking for an easier way to change the COM port no.

 

I'm trying to make a button, that when it's clicked, opens the "Serial Port Configuration" window 

(Quick > Device Configuration > Ethernet/Serial > Configure(button) > Serial Port Configuration)

 

I don't know if it is possible but if it is, will someone please explain to me how to do this?

 

Thanks!

Chantal++

Link to comment
Share on other sites

You can use the configureComm() function:

 

Create a button, then in the Action tab, select "Quick Sequence".  Then in the script area type something like:

 

device.myDevice.configureComm()

 

where myDevice is the name of the comm device you created.  This will open the serial or ethernet configuration window.

 

Note that changes are not saved unless you actually save your document.  You can do this from script using:

 

system.saveDocument()

 

But I recommend keeping backups of your document before deployment.  I recommend backups in all cases, actually...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.