11-14-2018 03:44 AM
Hi,
I have been tring to open metrix_gx3x0_example.vi , but i stuck in opening it with Labview 2016 32bits.
Could you please save it as 2016 version?
Kind regards,
Balazs
11-14-2018 08:54 AM
Hi Balazs,
Saved in 2014, will open in any newer version.
Craig
11-15-2018 02:40 AM - edited 11-15-2018 02:42 AM
Case 1:
In the very beginning i was not sure if i should have had changed COM4 port settings in windows10 or not, so i did as follows:
As you can se there is no setting of "Hardware (RTS/CTS)" that we would need for.
I started to run your code and still no communication between Metrix GX 320. No error message received like before. I changed everyting e.g.: main out, duty cycle, etc..
Case 2:
I then changed COM4 port settings to default in windows10.
I started to run your code and still no communication between Metrix GX 320. No error message received like before. I changed everyting e.g.: main out, duty cycle, etc..
Should not we change COM4 port settings programmatically?
11-15-2018 08:08 AM
The problem was with the way you had the driver VIs wired together improperly. You should not need to change the COM port settings. Do you have a record of what they should be? What does the manual say they should be? Try 9600 baud again.
Make sure NI-MAX is closed before you try the program. Re-boot the computer. If you can, plug the cable into a different port and see if its detected automatically. Make sure NI-MAX is closed and try that com port with LabVIEW.
Good luck.
11-21-2018 12:10 PM
Hi,
Yes, I have record what they should be. :
Metrix GX 320 Datesheet reads :
'The new COM port is configured as follows:
- speed: 19200 bauds
- data bits: 8
- parity: none
- stop bit: 1
- protocol: hardware (RTS / CTS)'
I can communicate with instrument only in NI MAX. (I get response for *idn? after i changed COM4 settings for above)
But in labview we can't change COM settings, right?
Kind regards,
Balázs
11-21-2018 12:26 PM
If you can now communicate with it in NI-MAX then it should work in LabVIEW also, no need to try to change the settings!
Just close NI-MAX, open LabVIEW and try the code I posted last week. Let me know if that works for you. Make sure you select COM4. Use highlight execution if you get errors and report where in the code they occur. (https://www.youtube.com/watch?v=oT6PLvpfpxE)
11-30-2018 03:37 AM - edited 11-30-2018 03:41 AM
Hi,
I gave it a try today. I ran your code again with default COM port settings and there was no communication between labview and metrix gx-320. Labview showed me no error message by the way.
I thank you for your technical support anyway.
Kind regards,
Balázs